package com.coisshi.base.module.user.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.coisshi.base.common.model.enums.BaseEnum;
import lombok.Getter;

/**
 * 用户状态枚举
 */
@Getter
public enum UserStatusEnum implements BaseEnum {
    ENABLED(1, "启用"),
    DISABLED(0, "禁用");

    @EnumValue
    private final int code;
    @EnumValue
    private final String label;

    UserStatusEnum(int code, String label) {
        this.code = code;
        this.label = label;
    }

    @Override
    public int getCode() {
        return this.code;
    }
    
    @Override
    public String getLabel() {
        return this.label;
    }
} 